import 'package:flutter_danmu_anim/page/fav/view.dart';
import 'package:flutter_danmu_anim/page/favDetail/view.dart';
import 'package:flutter_danmu_anim/page/home/view.dart';
import 'package:flutter_danmu_anim/page/hot/view.dart';
import 'package:flutter_danmu_anim/page/later/view.dart';
import 'package:flutter_danmu_anim/page/media/view.dart';
import 'package:flutter_danmu_anim/page/preview/view.dart';
import 'package:flutter_danmu_anim/page/setting/view.dart';
import 'package:flutter_danmu_anim/page/video/detail/index.dart';
import 'package:flutter_danmu_anim/page/webview/view.dart';
import 'package:get/get.dart';

class Routes {
  static final List<GetPage> getPages = [
    // 首页(推荐)
    GetPage(name: '/', page: () => const HomePage()),
    // 热门
    GetPage(name: '/hot', page: () => const HotPage()),
    // 视频详情
    GetPage(name: '/video', page: () => const VideoDetailPage()),
    // 图片预览
    GetPage(
      name: '/preview',
      page: () => const ImagePreview(),
      transition: Transition.fade,
      transitionDuration: const Duration(milliseconds: 300),
      showCupertinoParallax: false,
    ),
    // 网页
    GetPage(name: '/webview', page: () => const WebviewPage()),
    // 设置
    GetPage(name: '/setting', page: () => const SettingPage()),
    // 媒体库
    GetPage(name: '/media', page: () => const MediaPage()),
    // 我的收藏
    GetPage(name: '/fav', page: () => const FavPage()),
    // 收藏详情
    GetPage(name: '/favDetail', page: () => const FavDetailPage()),
    // 稍后再看
    GetPage(name: '/later', page: () => const LaterPage()),
  ];
}
